#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#include "esp_err.h"
#include "esp_system.h"
esp_err_t oss_upload_mem(const char *file_name, 
                const char *data, 
                const long  data_size,
                const char *oss_endpoint, 
                const char *bucket_name,
                const char *bucket_dir, 
                const char *access_key, 
                const char *access_securty,
                const char *sts_token);

esp_err_t oss_upload(const char *file_path, 
                const char *oss_endpoint, 
                const char *bucket_name,
                const char *bucket_dir, 
                const char *access_key, 
                const char *access_securty,
                const char *sts_token);


esp_err_t oss_download(const char *file_path, 
                const char *oss_endpoint, 
                const char *bucket_name,
                const char *bucket_dir, 
                const char *access_key, 
                const char *access_securty,
                const char *sts_token);

void oss_task_start();

#ifdef __cplusplus
}
#endif